﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习_方法定义
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个数");
            double a = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("请输入第二个数");
            double b = Convert.ToDouble(Console.ReadLine());

            Compute compute = new Compute();

            Console.WriteLine("和为"+compute.Add(a,b));
            Console.WriteLine("差为" + compute.Miuns(a, b));
            Console.WriteLine("积为" + compute.Multiply(a, b));
            Console.WriteLine("商为" + compute.Divide(a, b));
        }
    }
}
